<h1>Permissions (<?= Permission::count(); ?>)</h1>
<?= link_to("Add Permission", array("controller" => "permission", "action" => "add")) ?>
<table>
  <tr>
    <th>Id</th>    
    <th>Name</th>    
    <th>Description</th>
    <th>Public</th>    
    <th colspan="3">Actions</th>
  </tr>  
<? foreach($permissions as $permission) : ?>
  <tr>
    <td><?= $permission->id; ?></td>
    <td><?= $permission->name; ?></td>
    <td><?= $permission->description; ?></td>
    <td><?= $permission->public; ?></td>
    
    <td><?= link_to("View",   array("controller" => "permission", "action" => "view",   "id" => $permission->id)) ?></td>
    <td><?= link_to("Edit",   array("controller" => "permission", "action" => "edit",   "id" => $permission->id)) ?></td>
    <td><?= link_to("Delete", array("controller" => "permission", "action" => "delete", "id" => $permission->id)) ?></td>
  </tr>  
<? endforeach; ?>
</table>